"""
@Project:catering_takeout
@File:serializer.py
@Author:柴奇峰
@Date:16:46
"""
from rest_framework.serializers import ModelSerializer
from orders.models import Shopping_trolley,Order,OrderGoods,Comment

class Shopping_trolleySer(ModelSerializer):
    class Meta:
        model = Shopping_trolley
        fields = '__all__'

class OrderSer(ModelSerializer):
    class Meta:
        model = Order
        fields = '__all__'

class Order_GoodSer(ModelSerializer):
    class Meta:
        model = OrderGoods
        fields = '__all__'

class CommentSer(ModelSerializer):
    class Meta:
        model = Comment
        fields = '__all__'